package org.opu.doc2db.document.txtdoc.io;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Cell contain list of data
 * @author yura
 */
public class Cell implements Iterable<String> {

    List<String> strings = new ArrayList<String>();
    final int split;

    Cell(List<String> strings, int split) {
        this.strings = strings;
        this.split = split;
    }

    @Override
    public Iterator<String> iterator() {
        return strings.iterator();
    }

    boolean nullable() {
        return strings == null;
    }
}
